package com.source.multithread.enumm;

import java.sql.SQLOutput;

public enum EnumSingleTon {
    INSTANCE;
    public EnumSingleTon  getInstance(){
        return INSTANCE;
    }

    public static void main(String[] args) {
        EnumSingleTon instance1 = EnumSingleTon.INSTANCE;
        EnumSingleTon instance2 = EnumSingleTon.INSTANCE;
        System.out.println(instance1== instance2);
        System.out.println(instance1.hashCode());
        System.out.println(instance2.hashCode());
    }


}
